﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SYcwpb.Helpers;
using SYcwpb.Models;
using System.Data;

namespace SYcwpb.Access
{
    class GlobalConfigurationAccess
    {
        private int line = Convert.ToInt32(CONSTDATA.UserModel.Line);

        private SqlDataLayer sqlHelper = new SqlDataLayer();

        public void InitDelayInterval()
        {
            string sql_get = "select cfg_value from ConfigSetting where cfg_key = 'DelayInterval' and cfg_line= " + line;
            object obj = sqlHelper.GetSingle(sql_get);
            if (null == obj)
                return;

            CONSTDATA.DelayInter = Convert.ToInt32(obj);
        }

    }
}
